package main.java.com;


import main.java.com.NWPU.HelloService;
import main.java.com.NWPU.controllers.Autowired;
import main.java.com.NWPU.controllers.GetMapping;
import main.java.com.NWPU.controllers.PathVariable;


@Controller
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping
    @ResponseBody
    public String sayHello(@PathVariable String name) {
        return helloService.sayHello(name);
    }
}
